<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [1,3,5,64,35,23,3,6,9]
        function randomSort(arr) {
            return arr.sort((a, b) => {
                console.log('a:', a,'b:', b)
                return a-b
            })
        }
        console.log(randomSort(arr))
    </script>
</body>
</html>